<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div id="jobGroupRunningModal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
	<div class="modal-dialog modal-lg" style="width: 1200px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
				<h4 class="modal-title">
					<i class="mark"></i> 
					<span>运行中子任务</span>
				</h4>
			</div>
			<div class="modal-body">
				<div id="jobGroupRunningToolbar" class="btn-group" style="width: 100%;">
					<button id="jobGroupInterruptButton" class="btn btn-sm btn-warning" ng-click="interruptJobDetail();"
						ng-show="userName == 'admin'">
						<i class="glyphicon glyphicon-step-forward"></i> 中断
					</button>
					<button id="jobGroupResetButton" class="btn btn-sm btn-danger" ng-click="resetJobDetail();" 
						ng-show="userName == 'admin'" disabled>
						<i class="glyphicon glyphicon-repeat"></i> 重置
					</button>
					<button id="jobGroupFinishButton" class="btn btn-sm btn-danger" ng-click="finishJobDetail();" 
						ng-show="userName == 'admin'" disabled>
						<i class="glyphicon glyphicon-off"></i> 结束
					</button>
					
					<form class="form-inline pull-right">
						<div class="search-inline">
							<label>状态：</label> 
							<input select2 type="text" class="form-control input-sm" ng-model="jobDetailRunningVO.queryStatus" config="runStatusSelectConfig" style="width: 100px;"/>
							<label>地址：</label> 
							<input type="text" class="form-control input-sm" ng-model="jobDetailRunningVO.queryAddr">
							<label>序号：</label> 
							<input type="text" class="form-control input-sm" ng-model="jobDetailRunningVO.queryId">
							<button type="button" class="btn btn-sm btn-blue" ng-click="queryJobDetailRunning();">查询</button>
						</div>
					</form>
				</div>
				<div class="table-responsive">
					<table id="jobGroupRunningTable"
						data-id-field="id"
						data-side-pagination="server" 
						data-click-to-select="true"
						data-toolbar="#jobGroupRunningToolbar" 
						data-pagination="true" 
						data-page-size="10"
						data-detail-view="true"
						data-query-params-type="" 
						data-page-list="[5, 10, 20]">
						<thead>
							<tr>
								<th data-checkbox='true' />
								<th data-field="jobDetailName" data-align="center" data-valign="middle" data-class="table-column" data-width="35%">子任务名</th>
								<th data-field="id" data-align="center" data-valign="middle" data-class="table-column" data-width="30%">序号</th>
								<th data-field="addr" data-align="center" data-valign="middle" data-class="table-column" data-width="15%">执行端地址</th>
								<th data-field="status" data-align="center" data-valign="middle" data-class="table-column" data-width="8%" data-formatter="statusFormatter">状态</th>
								<th data-field="refireCount" data-align="center" data-valign="middle" data-class="table-column" data-width="5%">异常重投</th>
								<th data-width="7%" data-align="center" data-valign="middle" data-class="table-column operation" 
									data-events="jobDetailRunningOperEvents" data-formatter="jobDetailRunningOperFormatter">详情</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
